package cn.wit.summit.chwan.models.dto;

import cn.wit.summit.chwan.tools.downloadtool.DownLoadStatusConfig;
import cn.wit.summit.chwan.models.db.DownLoadTaskTable;

import java.io.Serializable;
import java.util.List;

// FIXME generate failure  field _$Game_score125

/**
 * Created by pengsk on 2018/4/10.
 */

public class GameInfoDetial extends GameListBaseBean implements Serializable{


    /**
     * game_id : 3866803292
     * game_name : 像素车：超改-国内唯一正版
     * game_upload_author : 大明
     * game_ico : http://ctimg.5fun.com/upload/images/bd/ac/bdac7f99c098083596d0f8eeeb78f4ed.png
     * game_screenshot_pic : http://ctimg.5fun.com/upload/images/34/d5/34d5119f35508bbb2c16582455e1e7f2.jpg
     * game_down_load_url : http://ctappdownload2018.5fun.com/appsite/simulator/android/xiangsuche0408_1.apk
     * game_package_name : com.blockycars.online.papa
     * game_down_status : 1
     * game_info : 海外精品游戏，国内唯一正版像素车！
     * game_recommend_info : 海外精品游戏，国内唯一正版像素车！....
     * game_introduce : 海外精品游戏，国内唯一正版像素车，海外精品游戏，国内唯一正版像素车，海外精品游戏，国内唯一正版像素车，海外精品游戏，国内唯一正版像素车...
     * game_explain : 版本特性：免谷歌，无广告，直装版
     * game_ver_name : 1.1
     * game_ver : 103
     * game_plugin_num : 46
     * game_tag_info : [{"id":"2","name":"精品","color":"#72c9d6","type":"1"}]
     * game_open_switch : 0
     * game_open_time : 1522842180
     * game_size : 101.00
     * game_actual_size : 106459696
     * game_comment_score_switch : 1
     * game_comment_score : 8.3
     * game_down_count : 254040
     * game_slide_pic : [{"pic_list":["http://ctimg.5fun.com/upload/images/81/81/818183e0442cdc636cdec45b1302ac99.jpg","http://ctimg.5fun.com/upload/images/81/81/818183e0442cdc636cdec45b1302ac99.jpg","http://ctimg.5fun.com/upload/images/81/81/818183e0442cdc636cdec45b1302ac99.jpg","http://ctimg.5fun.com/upload/images/81/81/818183e0442cdc636cdec45b1302ac99.jpg"],"pic_position":1}]
     * game_score  : {"score":"8.4","count":15}
     */

    private String game_recommend_info;
    private String game_upload_author;
    private String game_introduce;
    private String game_explain;
    private String game_share_url;
    private String game_comment_energy_num;
    private String game_share_energy_num;
    private String game_down_energy_num ;
    private String game_comment_count="0";
    private int  game_comment_switch;
    private int  game_follow;
    private int  game_is_collect;
    private String   game_diagram;
    private JumpBaseBean  game_share_ad;
    private GameSlidePicBean game_slide_pic;
    private List<JumpBaseBean> game_prize_ad;

    public String getGame_comment_energy_num() {
        return game_comment_energy_num;
    }

    public void setGame_comment_energy_num(String game_comment_energy_num) {
        this.game_comment_energy_num = game_comment_energy_num;
    }

    public String getGame_share_energy_num() {
        return game_share_energy_num;
    }

    public void setGame_share_energy_num(String game_share_energy_num) {
        this.game_share_energy_num = game_share_energy_num;
    }

    public String getGame_down_energy_num() {
        return game_down_energy_num;
    }

    public void setGame_down_energy_num(String game_down_energy_num) {
        this.game_down_energy_num = game_down_energy_num;
    }

    public String getGame_diagram() {
        return game_diagram;
    }

    public void setGame_diagram(String game_diagram) {
        this.game_diagram = game_diagram;
    }

    public JumpBaseBean getGame_share_ad() {
        return game_share_ad;
    }

    public void setGame_share_ad(JumpBaseBean game_share_ad) {
        this.game_share_ad = game_share_ad;
    }

    public List<JumpBaseBean> getGame_prize_ad() {
        return game_prize_ad;
    }

    public void setGame_prize_ad(List<JumpBaseBean> game_prize_ad) {
        this.game_prize_ad = game_prize_ad;
    }

    public String getGame_comment_count() {
        return game_comment_count;
    }

    public void setGame_comment_count(String game_comment_count) {
        this.game_comment_count = game_comment_count;
    }

    public int getGame_is_collect() {
        return game_is_collect;
    }

    public void setGame_is_collect(int game_is_collect) {
        this.game_is_collect = game_is_collect;
    }

    public int getGame_follow() {
        return game_follow;
    }

    public void setGame_follow(int game_follow) {
        this.game_follow = game_follow;
    }

    public String getGame_share_url() {
        return game_share_url;
    }

    public void setGame_share_url(String game_share_url) {
        this.game_share_url = game_share_url;
    }

    public String getGame_upload_author() {
        return game_upload_author;
    }

    public void setGame_upload_author(String game_upload_author) {
        this.game_upload_author = game_upload_author;
    }

    /**
     * 评论数据
     */
    private List<CommentBaseBean> commitDataBeanList;

    public int getGame_comment_switch() {
        return game_comment_switch;
    }

    public void setGame_comment_switch(int game_comment_switch) {
        this.game_comment_switch = game_comment_switch;
    }

    public List<CommentBaseBean> getCommitDataBeanList() {
        return commitDataBeanList;
    }

    public void setCommitDataBeanList(List<CommentBaseBean> commitDataBeanList) {
        this.commitDataBeanList = commitDataBeanList;
    }

    public String getGame_recommend_info() {
        return game_recommend_info;
    }

    public void setGame_recommend_info(String game_recommend_info) {
        this.game_recommend_info = game_recommend_info;
    }

    public String getGame_introduce() {
        return game_introduce;
    }

    public void setGame_introduce(String game_introduce) {
        this.game_introduce = game_introduce;
    }

    public String getGame_explain() {
        return game_explain;
    }

    public void setGame_explain(String game_explain) {
        this.game_explain = game_explain;
    }



    public GameSlidePicBean getGame_slide_pic() {
        return game_slide_pic;
    }

    public void setGame_slide_pic(GameSlidePicBean game_slide_pic) {
        this.game_slide_pic = game_slide_pic;
    }

    public DownLoadTaskTable getDownloadTaskTable() {
        DownLoadTaskTable taskTable = new DownLoadTaskTable();
        taskTable.setGameId(getGame_id());
        taskTable.setDownStatus(DownLoadStatusConfig.NORMAL);
        taskTable.setDownloadUrl(getGame_down_load_url());
        int game_plugin_num=getGame_startup_num();
        if (game_plugin_num == 46) {
            taskTable.setGameType(0);
        } else if (game_plugin_num == 47) {
            taskTable.setGameType(2);
        } else if (game_plugin_num == 48) {
            taskTable.setGameType(1);
        }
        taskTable.setPackageName(getGame_package_name());
        taskTable.setShowSize(getGame_size());
        taskTable.setUnzip_size(getGame_unzip_size());
        taskTable.setTotalSize(getGame_actual_size());
        return taskTable;
    }

    public static class GameScoreBean {
        /**
         * score : 8.4
         * count : 15
         */

        private String score;
        private int count;

        public String getScore() {
            return score;
        }

        public void setScore(String score) {
            this.score = score;
        }

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }
    }

    public static class GameSlidePicBean implements Serializable{
        /**
         * pic_list : ["http://ctimg.5fun.com/upload/images/81/81/818183e0442cdc636cdec45b1302ac99.jpg","http://ctimg.5fun.com/upload/images/81/81/818183e0442cdc636cdec45b1302ac99.jpg","http://ctimg.5fun.com/upload/images/81/81/818183e0442cdc636cdec45b1302ac99.jpg","http://ctimg.5fun.com/upload/images/81/81/818183e0442cdc636cdec45b1302ac99.jpg"]
         * pic_position : 1
         */

        private int pic_position;
        private List<String> pic_list;

        public int getPic_position() {
            return pic_position;
        }

        public void setPic_position(int pic_position) {
            this.pic_position = pic_position;
        }

        public List<String> getPic_list() {
            return pic_list;
        }

        public void setPic_list(List<String> pic_list) {
            this.pic_list = pic_list;
        }
    }
}
